package com.baizhi.controller;

import com.baizhi.service.CmfzLogService;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.ResponseBody;

import java.util.Map;

/**
 * Created by Administrator on 2019/4/12 0012.
 */
@Controller
@RequestMapping("/log")
public class CmfzLogController {
    @Autowired
    private CmfzLogService cmfzLogService;

    @RequestMapping("/showAll")
    public @ResponseBody Map showAll(Integer page, Integer rows, String adminUsername){
        Map map = cmfzLogService.showAll(page, rows, adminUsername);
        return map;
    }

    @RequestMapping("/delete")
    public @ResponseBody Map delete(int[] ids){
        Map map = cmfzLogService.deleteMany(ids);
        return map;
    }
}
